﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/plugin/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/MBase.js"></script>
</head>
<body>
	<div class="ibox-content">
		<form class="form-horizontal" id="dataform"
			onsubmit="javascripr:return false;">
			<c:if test="${obj ne null }">
				<input type="hidden" name="id" value="${obj.id }">
			</c:if>
			<div class="form-group">
				<label class="col-sm-2 control-label">真实姓名<span
					class="text-danger">*</span></label>
				<div class="col-sm-4">
					<input type="text" dataType="*1-100" class="form-control"
						name="authName" value="<c:out value="${obj.authName }"></c:out>">
				</div>
				<label class="col-sm-2 control-label">手机号<span
					class="text-danger">*</span></label>
				<div class="col-sm-4">
					<input type="text" dataType="m" class="form-control"
						name="authPhone" value="<c:out value="${obj.authPhone }"></c:out>">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">企业全称<span
					class="text-danger">*</span></label>
				<div class="col-sm-4">
					<input type="text" class="form-control"
						value="<c:out value="${obj.authCompany }"></c:out>"
						name="authCompany" nullmsg="企业全称不能为空">
				</div>
				<label class="col-sm-2 control-label">营业执照<span
					class="text-danger">*</span></label>
				<div class="col-sm-4">
					<input type="text" class="form-control" name="authLicense"
						value="<c:out value="${obj.authLicense }" ></c:out>">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">认证类型<span
					class="text-danger">*</span></label>
				<div class="col-sm-4">
					<c:if test="${obj.authLicenseType eq 1}">个人认证</c:if>
					<c:if test="${obj.authLicenseType eq 2}">企业认证</c:if>
				</div>
				<label class="col-sm-2 control-label">认证状态<span
					class="text-danger">*</span></label>
				<div class="col-sm-4">
					<select name="authStatus" class="form-control">
						<option value="1"
							<c:if test="${obj.authStatus eq 1}">selected="selected"</c:if>>待审核</option>
						<option value="2"
							<c:if test="${obj.authStatus eq 2}">selected="selected"</c:if>>通过</option>
						<option value="3"
							<c:if test="${obj.authStatus eq 3}">selected="selected"</c:if>>驳回</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">备注<span
					class="text-danger">*</span></label>
				<div class="col-sm-4">
					<input type="text" class="form-control"
						value="<c:out value="${obj.authRemark }"></c:out>"
						name="authRemark">
				</div>
			</div>
			<div class="form-group">
				<a target="blank" href="${obj.authIdCardPositive }"><img
					src="${obj.authIdCardPositive }">身份证正面照</a> <br> <a
					target="blank" href="${obj.authIdCardNegative }"><img
					src="${obj.authIdCardNegative }">身份证反面照</a> <br> <a
					target="blank" href="${obj.authLicensePhoto }"><img
					src="${obj.authLicensePhoto }">营业执照</a>
			</div>
			<div class="form-group ">
				<div class="col-sm-12 text-center">
					<a href="javascript:;" onclick="myForm.submit()"
						class="btn btn-success radius"><i class="fa fa-check"></i> 保存</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<a class="btn btn-danger radius" href="javascript:;"
						onclick="MTools.closeForm()"><i class="fa fa-close"></i> 关闭</a>
				</div>
			</div>
		</form>
	</div>
</body>
<script type="text/javascript"
	src="${path }/resource/js/systools/MJsBase.js"></script>
<script type="text/javascript">
	MTools.autoFullSelect();
	$(".select2").select2();
	var myForm = MForm.initForm({
		invokeUrl : '${path}/do/bizAuth/modifyBizAuth',
		afterSubmit : function() {
			parent.myGrid.serchData();
		},
	});
</script>
</body>
</html>